<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>个人中心</title>
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/header.css"/>
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/footer.css"/>
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/detail.css"/>
		<link rel="shortcut icon" href="{{__PUBLIC__}}/Home/images/favicon.ico">
		<script type="text/javascript" src="{{__PUBLIC__}}/Home/js/jquery-1.8.2.min.js"></script>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
		</style>
		<script>
		$(function(){
			//全选
			$('#checkAll').click(function(){
				//找到所有的复选框，添加checked=checked属性
				$('.goods-lists-dy :checkbox').attr('checked','checked');
			})
				//全不选
			$('#checkNo').click(function(){
					//找到所有的checkbox，取消他们的checked属性
				$('.goods-lists-dy :checkbox').removeAttr('checked');
			})
		})
		</script>
		{{include file="VIEW_PATH/Common/header.php"}}
		<div class="hr-10"></div>
		<div class="head-title-dy">
			<a href="">首页</a>\
			<a href="">我的商城</a> \
			<a href="">我的订单</a>
		</div>
		<div class="hr-10"></div>
		<div class="m-layout">
			<div class="m-left-dy">
				<div class="m-l-title"><a href="">我的商城</a></div>
				<h3><span>我的账户</span></h3>
				<ul class="m-order-dy">
					<li><a href="{{U('User/money')}}"><span>我的余额</span></a></li>
				</ul>
				<h3><span>订单中心</span></h3>
				<ul class="m-order-dy">
					<li><a href="{{U('User/index')}}"><span>我的订单</span><em>{{$num['all']}}</em></a></li>
				</ul>
				<h3><span>个人中心</span></h3>
				<ul class="m-order-dy">
					<li><a href="{{U('User/users')}}"><span>个人信息管理</span></a></li>
					<li><a href="{{U('User/address')}}"><span>收货地址管理</span></a></li>
				</ul>
			</div>
			<div class="m-right-dy">
				<div class="m-header-dy">
					<h3>订单号：{{$data['number']}}</h3>
					<div class="fr">
						{{if value="$data['status'] eq '未付款'"}}
							<a href="{{U('User/cancle',array('oid'=>$data['oid']))}}" class="fi-cancle">取消订单</a>
							<a href="{{U('Orders/index',array('oid'=>$data['oid']))}}" class="fi-pay">立即支付</a>
						{{endif}}
					</div>
				</div>
				<div class="myorder-cate-dy">
					<div class="list-group-caption">
						<p>收货信息</p>
					</div>
					<div class="list-group-info">
						<table>
							<tr>
								<th>姓名：</th>
								<td>{{$data['consignee']}}</td>
							</tr>
							<tr>
								<th>收货地址：</th>
								<td>{{$data['address']}}</td>
							</tr>
							<tr>
								<th>联系电话：</th>
								<td>{{$data['mobile']}}</td>
							</tr>
							<tr>
								<th>配送物流：</th>
								<td>{{$data['delivery']}}</td>
							</tr>
						</table>
					</div>
				</div>
					<!---------------------------------订单详情-->
				<div class="layout-dy">
					<div class="list-group-caption">
						<p>商品清单</p>
					</div>
					<div class="good-list-dy">
						<div>
							<table border="0" cellspacing="" cellpadding="" class="table-bt-dy">
								<tr class="title-dy">
									<th width="400" height="30">商品</th>
									<th width="120" height="30">单价（元）</th>
									<th width="140" height="30">数量</th>
									<th width="140" height="30">小计（元）</th>
									<th width="130" height="30">状态</th>
								</tr>
							</table>
						</div>
						<div class="goods-lists-dy">
								{{foreach from="$data['list']" key="$k" value="$v"}}
								<table border="0" cellspacing="" cellpadding="" class="table-2-dy">
									<input type="hidden" value="{{$k}}" class="kkey">
									<tr height="105">
										<td width="400" height="30">
											<div class="good-area-dy">
												<p class="g-img-dy"><a href=""><img src="{{__ROOT__}}/{{$v['list_view']}}" alt="" /></a></p>
												<p class="g-name-dy"><a href="">{{$v['gname']}}</a></p>
											</div>
										</td>
										<td width="120" height="30"><span>¥{{$v['shop_price']}}</span></td>
										<td width="140" height="30" class="g-num-dy">
											{{$v['quantity']}}
										</td>
										<td width="135" height="30" class="g-stotal-dy"><span>¥<span class="total">{{$v['subtotal']}}</span></span></td>
										<td width="130" height="30" class="g-del-dy"><span>{{$data['status']}}</span></td>
									</tr>
								</table>
							{{endforeach}}
						</div>						
					</div>
					<div class="hr-20"></div>
					<div class="total-dy">
						<div class="total-right-dy">
							<table border="0" cellspacing="" cellpadding="" class="total-table-dy">
								<tr>
									<th>总计金额：</th><td>¥{{$data['total']}}</td>
								</tr>
								<tr>
									<th>运费：</th><td>¥0.00</td>
								</tr>
								<tr class="no-free">
									<th>合计(不含运费)：</th><td><span>¥{{$data['total']}}</span></td>
								</tr>
							</table>
						</div>
					</div>
					<div class="hr-20"></div>
					<div class="action-area-dy">
						{{if value="$data['status'] eq '未付款'"}}
							<a href="{{U('Orders/index',array('oid'=>$data['oid']))}}" class="sub-total-dy">立即支付</a>
						{{endif}}
					</div>
				</div>
			</div>
		</div>
		
		<div class="hr-60"></div>
<!------------------------------底部-------------------------->
		{{include file="VIEW_PATH/Common/footer.php"}}
	</body>
</html>
